unit LiveMain;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, DB, DBTables, DBClient, Provider, StdCtrls, Grids, DBGrids;

type
  TForm1 = class(TForm)
    Database1: TDatabase;
    Table1: TTable;
    DataSetProvider1: TDataSetProvider;
    ClientDataSet1: TClientDataSet;
    DataSource1: TDataSource;
    DBGrid1: TDBGrid;
    Button1: TButton;
    procedure FormCreate(Sender: TObject);
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
  Table1.FieldDefs.HiddenFields := True;
  ClientDataSet1.Open;
  //Table1.Open;
  //Table1.Fields[Table1.FieldCount - 1].ReadOnly := False;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ClientDataSet1.ApplyUpdates(0);
end;

end.
